import service from "../utils/request";

export function getRootTypes(data){
    return service.request({
        method: 'get',
        url: '/api/getTypeByUserId',
        params: {
            userId: data
        }
    })
}

export function getSecondTypes(data){
    return service.request({
        method: 'get',
        url: '/api/getTypeByParentId',
        params: {
            typeParentId: data
        }
    })
}

export function getNames(data){
    return service.request({
        method: 'get',
        url: '/api/getNamesBySecondTypeId',
        params: {
            typeSecondId: data
        }
    })
}



export function getNamesByLikeName(data){
    return service.request({
        method: 'get',
        url: '/api/getNamesByLikeName',
        params: {
            name: data
        }
    })
}